home *** CD-ROM | disk | FTP | other *** search
-
-
-
- CHOWN(3) MINTLIB LIBRARY FUNCTIONS CHOWN(3)
-
-
- N✓NA✓AM✓ME✓E
- chown - change owner and group of a file
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <unistd.h>
-
- int chown(const char *path, int uid, int gid);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- path points to a path naming a file. The owner ID and
- group ID of the file are set to the numeric values con-
- tained in uid and gid respectively.
-
- Only a process with effective uid 0 or whose effective uid
- matches the user ownership of the file may make this call.
- In the latter case, the new uid must match the old one,
- and the calling process must also be a member of the group
- specified by gid.
-
- R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
- 0 on success -1 on failure; errno is set to indicate the
- error
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- c✓ch✓hm✓mo✓od✓d(✓(3✓3)✓),✓, F✓Fc✓ch✓ho✓ow✓wn✓n(✓(2✓2)✓)
-
- N✓NO✓OT✓TE✓ES✓S
- When MiNT is not active, this routine is bogus.
-
- MS-DOS (TOS) file systems do not understand file owner-
- ship.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-